<!--
 * @Author: your name
 * @Date: 2021-12-17 13:11:08
 * @LastEditTime: 2021-12-17 13:17:28
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \12.14vue\my-app\src\components\Header.vue
-->
/<template>
  <div class="header">
      <van-icon name="arrow-left" @click="$router.go(-1)"/>
      <b>{{name}}</b>
      <span></span>
  </div>
</template>

<script>
export default {
  props: ["name"]
}
</script>

<style lang="scss" scoped>
.header{
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px;
}
</style>